<?php
/*@var $form yii\widgets\ActiveForm */
/*@var $this yii\web\view */
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use backend\assets\OperatorAsset;
OperatorAsset::register($this);
$this->title='操作员管理模块';
?>
<?php $this->beginBlock('pagename'); ?>
	操作员管理
<?php $this->endBlock(); ?>
<div class="col-sm-12">
	<h3 class="header blue lighter smaller">
		<i class="ace-icon fa fa-folder-o smaller-90"></i>
		操作员管理模块
	</h3>

	<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all" >
		<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
			<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-29" aria-selected="true" aria-expanded="true">
				<a href="#tabs-1" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-29">操作员列表</a>
			</li>

			<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-30" aria-selected="false" aria-expanded="false">
				<a href="#tabs-2" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-30">添加操作员</a>
			</li>

			
		</ul>

	<div id="tabs-1" aria-labelledby="ui-id-29" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="false" style="display: block;" >
		<?=$this->render('_memberlist'); ?>
	</div>

	<div id="tabs-2" aria-labelledby="ui-id-30" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="false" style="display: block;">
		<div class="row">
			<?php $form=ActiveForm::begin([
				'fieldConfig'=>[
					'template'=>'{label}<div class="col-sm-9">{input}<span class="help-inline col-xs-12 col-sm-7">{hint}{error}</span></div>',
							'labelOptions'=>['class'=>'col-sm-3 control-label no-padding-right'],
							'inputOptions'=>['class'=>'col-xs-9 col-sm-5'],
							'errorOptions'=>['class'=>'middle'],
				],
				'options'=>['class'=>'form-horizontal'],
			]);?>
			
			<?=$form->field($model, 'username')->textInput() ?>
			<?=$form->field($model, 'Pwd')->passwordInput()?>
			<?=$form->field($model, 'Repwd')->passwordInput() ?>
			<?=$form->field($model, 'RoleID')->dropDownList($roledata,['style'=>'width:200px']); ?>
			<?=$form->field($model, 'Address')->textInput() ?>
			<?=$form->field($model, 'LinkTel')->textInput() ?>
			<?=$form->field($model, 'QQ')->textInput() ?>
			<?=$form->field($model, 'Email')->textInput() ?>
			<?=$form->field($model, 'Mobile')->textInput() ?>
			<?=$form->field($model, 'SortID')->textInput() ?>
			<?=$form->field($model, 'State')->radioList([
				'1'=>'启用',
				'2'=>'禁用',
			],[$model->State='1']) ?>
			<?=Html::hiddenInput('action','addoper'); ?>
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="reset">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>
			
			<?php ActiveForm::end();?>
			</div>
		</div>
	</div>		
	</div>
</div><!-- ./col -->
